// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:54:24

// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   rq.java

package com.zelix;

import java.util.*;

// Referenced classes of package com.zelix:
//            oq, ec

class rq
{

    private ArrayList a;

    rq(oq oq1)
    {
        Enumeration enumeration;
        boolean flag;
        flag = ec.b;
        super();
        a = new ArrayList();
        enumeration = oq1.a();
        if(!flag) goto _L2; else goto _L1
_L1:
        HashSet hashset = new HashSet();
        hashset.add(enumeration.nextElement());
        a.add(hashset);
_L2:
        if(!enumeration.hasMoreElements())
            return;
        if(true) goto _L1; else goto _L3
_L3:
    }

    boolean a(rq rq1)
    {
        ArrayList arraylist;
        int i;
        boolean flag;
        flag = ec.b;
        arraylist = rq1.a;
        i = 0;
        if(!flag) goto _L2; else goto _L1
_L1:
        HashSet hashset = (HashSet)a.get(i);
        HashSet hashset1 = (HashSet)arraylist.get(i);
        HashSet hashset2 = null;
        HashSet hashset3 = null;
        HashSet hashset4 = null;
        HashSet hashset5 = null;
        if(i > 0)
        {
            hashset2 = (HashSet)a.get(i - 1);
            hashset3 = (HashSet)arraylist.get(i - 1);
        }
        if(i < a.size() - 1)
        {
            hashset4 = (HashSet)a.get(i + 1);
            hashset5 = (HashSet)arraylist.get(i + 1);
        }
        if(!hashset.equals(hashset1) && (hashset2 != null && !hashset2.equals(hashset3) || hashset4 != null && (!hashset4.equals(hashset5) || flag)))
            return false;
        i++;
_L2:
        if(i >= a.size())
            return true;
        if(true) goto _L1; else goto _L3
_L3:
    }

    Enumeration a()
    {
        return Collections.enumeration(a);
    }

    int b()
    {
        return a.size();
    }

    void b(rq rq1)
    {
        int i;
        boolean flag;
        flag = ec.b;
        i = 0;
        if(!flag) goto _L2; else goto _L1
_L1:
        HashSet hashset = (HashSet)a.get(i);
        hashset.addAll((HashSet)rq1.a.get(i));
        i++;
_L2:
        if(i >= a.size())
            return;
        if(true) goto _L1; else goto _L3
_L3:
    }
}